package com.meilai.project.util.either;

import java.util.Optional;

/**
 * @author 张驰
 * @date 2020/12/3 17:13
 */
public interface Either<A, B> {

    Optional<B> getRightData();

    Optional<A> getLeftData();

    boolean isRight();

    boolean isLeft();
}
